home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / OCEErrors.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  17.4 KB  |  325 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        OCEErrors.p
  3.  
  4.      Contains:    Apple Open Collaboration Environment Error Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT OCEErrors;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __OCEERRORS__}
  30. {$SETC __OCEERRORS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC OCEErrorsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __ERRORS__}
  38. {$I Errors.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46. CONST
  47.     kOCEToolboxNotOpen            = -1500;                        { Toolbox not open; perhaps its closing }
  48.     kOCEInvalidCommand            = -1501;                        { Request code passed to a trap call is invalid }
  49.     kOCEInvalidRef                = -1502;                        { a reference to an object is obsolete or invalid }
  50.     kOCEBufferTooSmall            = -1503;                        { the buffer supplied is too small for the task }
  51.     kOCEVersionErr                = -1504;                        { some manner of software version mismatch }
  52.     kOCESyncAsyncErr            = -1505;                        { Op tried synchronously may only be done async, or vice versa }
  53.     kOCEInternalErr                = -1506;                        { the OCE toolbox has an internal error }
  54.     kOCENotAnOwner                = -1507;                        { this operation can only be done by the object's owner }
  55.     kOCENotImplemented            = -1508;                        { Feature not implemented }
  56.     kOCENotAuthenticated        = -1509;                        { The user must be authenticated }
  57.     kOCEAlreadyExists            = -1510;                        { The object being added already exists }
  58.     kOCEDoesntExist                = -1511;                        { the object being referenced doesn't exist or cannot be found }
  59.     kOCEConnectionErr            = -1512;                        { Unable to open or maintain a network transport }
  60.     kOCEConnectionClosed        = -1513;                        { Connect has closed }
  61.     kOCEInvalidRecipient        = -1514;                        { Invalid recipient/address for this command }
  62.     kOCEInvalidIndex            = -1515;                        { invalid index (out of range) }
  63.     kOCERefIsClosing            = -1516;                        { Object references is being closed, cannot complete command }
  64.     kOCEHasPendingMsgs            = -1517;
  65.     kOCEInvalidConfiguration    = -1518;
  66.     kOCERequiredServicesNotAvailable = -1519;
  67.     kOCEServerInactive            = -1520;
  68.     kOCEMoreDiskSpaceNeeded        = -1521;                        { Inadequate disk space to safely complete operation }
  69.     kOCEParamErr                = paramErr;                        { invalid parameter passed to toolbox }
  70.  
  71. { AOCE Authentication Errors (-1540 to -1609) }
  72.     kOCEReadAccessDenied        = -1540;
  73.     kOCEWriteAccessDenied        = -1541;
  74.     kOCEAccessRightsInsufficient = -1542;                        { stream needs to be authenticated, or not authorized, or someone other than agent trying to TPFC, or problem in server-to-server authentication }
  75.     kOCEUnsupportedCredentialsVersion = -1543;                    { don't know how to read that version of credentials }
  76.     kOCECredentialsProblem        = -1544;                        { couldn't successfully decrypt credentials }
  77.     kOCECredentialsImmature        = -1545;                        { current time < first valid time }
  78.     kOCECredentialsExpired        = -1546;                        { current time > expiry time }
  79.     kOCEProxyImmature            = -1547;                        { current time < proxy start time }
  80.     kOCEProxyExpired            = -1548;                        { current time > proxy expiry time }
  81.     kOCEDisallowedRecipient        = -1549;                        { Recipient not specified in proxy }
  82.     kOCENoKeyFound                = -1550;                        { found no key for entity in question }
  83.     kOCEPrincipalKeyNotFound    = -1551;                        { couldn't decode proxy because principal has no key }
  84.     kOCERecipientKeyNotFound    = -1552;                        { recipient has no key }
  85.     kOCEAgentKeyNotFound        = -1553;                        { in TPFC, agent has no key }
  86.     kOCEKeyAlreadyRegistered    = -1554;                        { entity already has a key }
  87.     kOCEMalformedKey            = -1555;                        { key is of an unknown encryption method, or key doesn't match password }
  88.     kOCEUndesirableKey            = -1556;                        { password too short, key too simple, or trying to change cluster key to the same value }
  89.     kOCEWrongIdentityOrKey        = -1557;                        { In CheckIdentity, name doesn't exist or key is wrong }
  90.     kOCEInitiatorKeyProblem        = -1558;                        { either we couldn't find the initiator's key or we found it but couldn't successfully decrypt instructions or proxy }
  91.     kOCEBadEncryptionMethod        = -1559;                        { the specified encryption method is not supported }
  92.     kOCELocalIdentityDoesNotExist = -1560;                        { LocalIdentity has to be setup }
  93.     kOCELocalAuthenticationFail    = -1561;                        { LocalIdentity Login has to be done for this operation }
  94.     kOCELocalIdentitySetupExists = -1562;                        { LocalIdentity setup exists, use change instead of setup }
  95.     kOCEDirectoryIdentitySetupExists = -1563;                    { DirectoryIdentity setup exists, use change instead of setup }
  96.     kOCEDirectoryIdentitySetupDoesNotExist = -1564;                { DirectoryIdentity setup does not exist }
  97.     kOCENotLocalIdentity        = -1565;                        { Use LocalIdentity calls instead! }
  98.     kOCENoMoreIDs                = -1566;                        { identity table is full }
  99.     kOCEUnknownID                = -1567;                        { identity passed is not valid }
  100.     kOCEOperationDenied            = -1568;                        { LocalID operation denied }
  101.     kOCEAmbiguousMatches        = -1569;                        { ambiguous matches found in resolving CIDs (more than 1 CID) }
  102.     kOCENoASDSPWorkSpace        = -1570;                        { No ASDSP workspace passed for Open Secure Stream }
  103.     kOCEAuthenticationTrouble    = -1571;                        { generic authentication problem }
  104.  
  105. { AOCE Catalog Errors (-1610 to -1680) }
  106.     kOCENotLocal                = -1610;                        { the server does not serve the requested dNode }
  107.     kOCETooBusy                    = -1611;                        { server cannot complete call at this time }
  108.     kOCEDatabaseFull            = -1612;                        { disk is full }
  109.     kOCETargetDirectoryInaccessible = -1613;                    { Catalog server not responding }
  110.     kOCEBogusArgs                = -1614;                        { Args not formatted correctly on the wire }
  111.     kOCENoSuchDNode                = -1615;                        { the requested dNode does not exist }
  112.     kOCEDNodeUnavailable        = -1616;                        { could not find any servers that serve the requested dNode }
  113.     kOCEBadRecordID                = -1617;                        { invalid RecordID (usually name and/or type don't match cid) }
  114.     kOCENoSuchRecord            = -1618;                        { the specified record does not exist }
  115.     kOCENoSuchAttributeValue    = -1619;                        { The attribute value that was passed in does not exist }
  116.     kOCENoSuchPseudonym            = -1620;                        { the specified pseudonym does not exist }
  117.     kOCEAttributeValueTooBig    = -1621;                        { self-explanatory }
  118.     kOCETypeExists                = -1622;                        { The type already exists in the record }
  119.     kOCEMoreData                = -1623;                        { only a warning - buffer not big enough }
  120.     kOCERefNumBad                = -1624;                        { RefNum is not valid }
  121.     kOCEStreamCreationErr        = -1625;                        { problem creating stream }
  122.     kOCEOperationNotSupported    = -1626;                        { the specified catalog does not support this operation }
  123.     kOCEPABNotOpen                = -1627;                        { specified Personal Catalog is not open to make the operation }
  124.     kOCEDSAMInstallErr            = -1628;                        { specified CSAM could not be installed }
  125.     kOCEDirListFullErr            = -1629;                        { catalog list is full, try removing an entry }
  126.     kOCEDirectoryNotFoundErr    = -1630;                        { catalog was not found in the list }
  127.     kOCEAbortNotSupportedForThisCall = -1631;                    { this call cannot be aborted }
  128.     kOCEAborted                    = -1632;                        { this call was aborted }
  129.     kOCEOCESetupRequired        = -1633;                        { LocalIdentity Setup is required }
  130.     kOCEDSAMRecordNotFound        = -1634;                        { CSAM Record not found }
  131.     kOCEDSAMNotInstantiated        = -1635;                        { CSAM is not instantiated }
  132.     kOCEDSAMRecordExists        = -1636;                        { CSAM record already exists }
  133.     kOCELengthError                = -1637;                        { supplied buffer was too small }
  134.     kOCEBadStartingRecord        = -1638;                        { Lookup starting record is not within range }
  135.     kOCEBadStartingAttribute    = -1639;                        { Lookup starting attribute is not within range }
  136.     kOCEMoreAttrValue            = -1640;                        { attribute value could not fit into buffer (even though it was the only value) }
  137.     kOCENoDupAllowed            = -1641;
  138.     kOCENoSuchAttributeType        = -1642;
  139.     kOCEMiscError                = -1643;                        { some other error }
  140.     kOCENoSuchIcon                = -1644;                        { no matching icon from GetDirectoryIcon }
  141.     kOCERLIsDontMatch            = -1645;                        { RLIs do not match in lookup }
  142.     kOCEDirectoryCorrupt        = -1646;                        { Serious disk fill corruption problem }
  143.  
  144. { AOCE Standard Mail Errors (-1900 to -1949) }
  145.     kSMPNotEnoughMemoryForAllRecips = -1900;
  146.     kSMPCopyInProgress            = -1901;
  147.     kSMPMailerNotInitialized    = -1902;
  148.     kSMPShouldNotAddContent        = -1903;
  149.     kSMPMailboxNotFound            = -1904;
  150.     kSMPNoNextLetter            = -1905;
  151.     kSMPHasOpenAttachments        = -1906;
  152.     kSMPFinderNotRunning        = -1907;
  153.     kSMPCommandDisabled            = -1908;
  154.     kSMPNoMailerInWindow        = -1909;
  155.     kSMPNoSuchAddress            = -1910;
  156.     kSMPMailerAlreadyInWindow    = -1911;
  157.     kSMPMailerUneditable        = -1912;
  158.     kSMPNoMatchingBegin            = -1913;
  159.     kSMPCannotSendReceivedLetter = -1914;
  160.     kSMPIllegalForDraftLetter    = -1915;
  161.     kSMPMailerCannotExpandOrContract = -1916;
  162.     kSMPMailerAlreadyExpandedOrContracted = -1917;
  163.     kSMPIllegalComponent        = -1918;
  164.     kSMPMailerAlreadyNotTarget    = -1919;
  165.     kSMPComponentIsAlreadyTarget = -1920;
  166.     kSMPRecordDoesNotContainAddress = -1921;
  167.     kSMPAddressAlreadyInList    = -1922;
  168.     kSMPIllegalSendFormats        = -1923;
  169.     kSMPInvalidAddressString    = -1924;
  170.     kSMPSubjectTooBig            = -1925;
  171.     kSMPParamCountErr            = -1926;                        {  enclosure count != 1, while sendEnclosure Only == true. }
  172.     kSMPTooManyPages            = -1927;                        {  Exceeding the image page limit. }
  173.     kSMPTooManyEnclosures        = -1928;
  174.  
  175. { AOCE Standard Catalog Errors (-1950 to -1969) }
  176.     kSDPNoSearchText            = -1950;
  177.     kSDPTooManyLoginAttempts    = -1951;
  178.     kSDPNoSelection                = -1952;
  179.     kSDPPersonalDirectoryRepairFailed = -1953;
  180.  
  181. { AOCE Digital Signature Errors (-1970 to -1999) }
  182.     kSIGOperationIncompatibleErr = -1970;                        { context in use for different type of operation }
  183.     kSIGCertificateQueryDenied    = -1971;                        { can't query certificates with this context }
  184.     kSIGVerifyFailedErr            = -1972;                        { verification failed }
  185.     kSIGInvalidCredentialErr    = -1973;                        { verified OK but credential out of date,  either pending or expired }
  186.     kSIGIndexErr                = -1974;                        { the index given is outside the range of allowable values }
  187.     kSIGSignerErr                = -1975;                        { problem with the signer or signature itself }
  188.     kSIGPasswordErr                = -1976;                        { password is incorrect }
  189.     kSIGInternalsErr            = -1977;                        { an internal error occurred like a bad digest, context or signature }
  190.     kSIGToolboxNotPresentErr    = -1978;                        { for client services (ie servers) to report back - not retruned by the TB }
  191.     kSIGContextPrepareErr        = -1979;                        { context either prepared with VerifyPrepare, SignPrepare or DigestPrepare already or has been corrupted }
  192.     kSIGNoDigestErr                = -1980;                        { no digest in the signature }
  193.     kSIGConversionErr            = -1981;                        { unabled to convert an attribute to Mac format }
  194.     kSIGSignerNotValidErr        = -1982;                        { Signer has either expired or is pending and can not sign }
  195.     kSIGNoSignature                = -1983;                        { standard file signature not found }
  196.  
  197. { AOCE Templates Errors (-15000 to -15039) }
  198.     kDETInvalidTargetAspectName    = -15000;                        { Could not locate an aspect by name }
  199.     kDETInvalidTargetItemNumber    = -15001;                        { Item number is target invalid (out of range 1..<number of children>) }
  200.     kDETInvalidTargetFromNonAspect = -15002;                    { Target selection relative to non-aspect object which requires an aspect }
  201.     kDETInvalidTargetDSSpec        = -15003;                        { Target DSSpec could not be resolved }
  202.     kDETUnknownTargetSelector    = -15004;                        { Unknown selector type for target specification }
  203.     kDETInvalidTarget            = -15005;                        { Target specification was invalid (for reasons other than those above) }
  204.     kDETTargetNotAnAspect        = -15006;                        { Specified target object was not an aspect }
  205.     kDETInvalidCommandItemNumber = -15007;                        { Command item number invalid (out of range 1..<number of items in selection>) }
  206.     kDETUnableToGetCommandItemSpec = -15008;                    { Unable to retrieve item specification (internal error, possibly out of memory) }
  207.     kDETRequestedTypeUnavailable = -15009;                        { Command item could not be represented in the form requested }
  208.     kDETInvalidDSSpec            = -15010;                        { Could not resolve DSSpec (other than in target; see error above for targets) }
  209.     kDETUnableToAccessProperty    = -15011;                        { Property could not be found and/or created }
  210.     kDETInfoPageNotOpen            = -15012;                        { Info-page not open; request requires an open info-page }
  211.     kDETNoSuchView                = -15013;                        { No view found with specified property number }
  212.     kDETCouldNotAddMenuItem        = -15014;                        { Could not add item to dynamic menu }
  213.     kDETCouldNotRemoveMenuItem    = -15015;                        { Could not remove item from dynamic menu }
  214.     kDETCouldNotFindMenuItem    = -15016;                        { Could not find menu item }
  215.     kDETCouldNotFindCustomView    = -15017;                        { Could not find custom view in info-page }
  216.     kDETInvalidReqFunction        = -15018;                        { Invalid call-back request function }
  217.     kDETInvalidCallBack            = -15019;                        { Invalid call-back (for reasons other than those above) }
  218.     kDETPropertyBusy            = -15020;                        { Edit is open on the property being set }
  219.  
  220. { AOCE Mail Errors (-15040 to -15089) }
  221.     kMailInvalidOrder            = -15040;                        { This object has already been written to and cannot be written again }
  222. { handle non-zero offsets for now }
  223.     kMailInvalidSeqNum            = -15041;                        { Invalid letter sequence o refers to an non–existent letter }
  224.     kMailAttrNotInHdr            = -15042;                        { attribute does not exist in this letter header }
  225.     kMailHdrAttrMissing            = -15043;                        { required attribute not written into letter header }
  226.     kMailBadEnclLengthErr        = -15044;                        { incorrect number of bytes has been written after memForm of PutEnclosure }
  227.     kMailInvalidRequest            = -15045;                        { cannot putAttr for report, putRcptReport for letter }
  228.     kMailInvalidPostItVersion    = -15046;                        { cannot create new postit with this version }
  229.     kMailNotASlotInQ            = -15047;                        { queueID does not refer to a slot's incoming queue }
  230.     kMailLtrNotOpen                = -15048;                        { letter is not open, probably not cached in inQ }
  231.     kMailMissingMailCat            = -15049;                        { trying to create message in inq, with no postIt }
  232.     kMailCannotWriteMailCat        = -15050;                        { cannot update a mail catentry }
  233.     kMailTooManyTagsPerLetter    = -15051;                        { cannot add more than kMaxTagsPerLetter tags }
  234.     kMailGwyDead                = -15052;                        { MSAM died }
  235.     kMailIgnoredErr                = -15053;                        { ePPC message was ignored }
  236.     kMailLengthErr                = -15054;                        { ePPC message did not complete }
  237.     kMailTooManyErr                = -15055;                        { Too many = request outstanding, }
  238.     kMailNoMSAMErr                = -15056;                        { no MSAMs found in mailbox! or for command }
  239.     kMailCancelled                = -15057;
  240.     kMailSlotSuspended            = -15058;
  241.     kMailMSAMSuspended            = -15059;
  242.     kMailBadSlotInfo            = -15060;
  243.     kMailMalformedContent        = -15061;                        { a mailed structure is malformed }
  244.     kMailNoSuchSlot                = -15062;                        { no such slot }
  245.     kMailBadLtrInfo                = -15063;                        { bad info there, can't change }
  246.     kMailSetFailed                = -15064;                        { could not set letter info }
  247.     kMailBadConfig                = -15065;                        { MSAM has bad config info }
  248.     kMailBadMSAM                = -15066;                        { bad MSAM: not usable = reason unspec, }
  249.     kMailCannotLkupServerSlots    = -15067;                        { cannot lookup adas for server mail slots }
  250.     kMailBadState                = -15068;                        { the state specifiy is not in any of defined }
  251.  
  252. { AOCE Messaging Errors (-15090 to -15169) }
  253.     kIPMCantCreateIPMCatEntry    = -15090;
  254.     kIPMInvalidMsgType            = -15091;                        { bad msg hint }
  255.     kIPMInvalidProcHint            = -15092;                        { bad proc hint }
  256.     kIPMInvalidOffset            = -15093;                        { bad offset for read/write }
  257.     kIPMUpdateCatFailed            = -15094;
  258.     kIPMMsgTypeReserved            = -15095;
  259.     kIPMNotInABlock                = -15096;
  260.     kIPMNestedMsgOpened            = -15097;
  261.     kIPMA1HdrCorrupt            = -15098;
  262.     kIPMCorruptDataStructures    = -15099;
  263.     kIPMAbortOfNestedMsg        = -15100;
  264.     kIPMBlockIsNotNestedMsg        = -15101;
  265.     kIPMCacheFillError            = -15102;
  266.     kIPMInvalidSender            = -15103;
  267.     kIPMNoRecipientsYet            = -15104;
  268.     kIPMInvalidFilter            = -15105;
  269.     kIPMAttrNotInHdr            = -15106;
  270.     kIPMBlkNotFound                = -15107;
  271.     kIPMStreamErr                = -15108;                        { Error on stream (should this ever go out?) }
  272.     kIPMPortClosed                = -15109;                        { Port closed (should this ever go out?) }
  273.     kIPMBinBusy                    = -15110;
  274.     kIPMCorruptedBin            = -15111;
  275.     kIPMBadQName                = -15112;
  276.     kIPMEndOfBin                = -15113;
  277.     kIPMBinNeedsConversion        = -15114;
  278.     kIPMMgrInternalErr            = -15115;
  279.     kIPMEltBusy                    = -15116;
  280.     kIPMEltClosedNotDeleted        = -15117;
  281.     kIPMBadContext                = -15118;
  282.     kIPMContextIsClosing        = -15119;
  283.     kIPMeoQ                        = -15120;
  284.     kIPMQOutOfSpace                = -15121;
  285.     kIPMEltNotFound                = -15122;
  286.     kIPMBinOutOfSpace            = -15123;
  287.     kIPMeoCatEntry                = -15124;
  288.     kIPMeoElt                    = -15125;
  289.     kIPMQBusy                    = -15126;
  290.     kIPMNotSameBin                = -15127;
  291.     kIPMNoMoreServices            = -15128;
  292.     kIPMLookupAttrTooBig        = -15129;                        { attribute in lookup is too big }
  293.     kIPMUnknownUAM                = -15130;
  294.     kIPMUnsupportedLogin        = -15131;
  295.     kIPMLogInUnknown            = -15132;
  296.     kIPMNoMoreFilters            = -15133;
  297.     kIPMCouldNotReadInfoReply    = -15134;
  298.     kIPMInvalidUser                = -15135;
  299.     kIPMNoMoreSessions            = -15136;
  300.     kIPMNilUserProc                = -15137;
  301.     kIPMBadCatSize                = -15138;
  302.     kIPMIncompleteMsg            = -15139;
  303.     kIPMNoResponsibleTunnel        = -15140;
  304.     kIPMAccessDenied            = -15141;
  305.     kIPMReplyParamUnderrun        = -15142;                        { Too few reply parameters }
  306.     kIPMReplyParamOverrun        = -15143;                        { Too many reply parameters }
  307.     kIPMRequestParamUnderrun    = -15144;                        { Too few request parameters }
  308.     kIPMOutOfSync                = -15145;                        { Protocol sync. error }
  309.     kIPMNoAttrsFound            = -15146;                        { couldn't find any attrs in lookup }
  310.     kIPMWrongAttrTag            = -15147;                        { wrong attr tag in adas lookup }
  311.     kIPMNullCID                    = -15148;                        { null cid in enumerate }
  312.     kIPMBadMailSlotAttrVal        = -15149;                        { invalid mailslot attr value }
  313.  
  314.  
  315. {$ALIGN RESET}
  316. {$POP}
  317.  
  318. {$SETC UsingIncludes := OCEErrorsIncludes}
  319.  
  320. {$ENDC} {__OCEERRORS__}
  321.  
  322. {$IFC NOT UsingIncludes}
  323.  END.
  324. {$ENDC}
  325.